home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 10 / chkdrv.zip / CHKDRV.DOC < prev   
Text File  |  1989-10-03  |  978b  |  38 lines

  1.         PURPOSE
  2.  
  3.         For batch files; returns an errorlevel that indicates whether
  4.         a specific drive is available.  Avoids "Abort, Retry, Fail"
  5.         messages and allows unattended operation.
  6.  
  7.         FORMAT
  8.  
  9.             CHKDRV d:
  10.  
  11.         REMARKS
  12.  
  13.         The colon is required.  The errorlevel returned is one of:
  14.  
  15.             0:    The drive is ready
  16.             1:    The drive is not ready (invalid drive letter, door
  17.                   open, no diskette, etc.)
  18.             255:  Usage error
  19.  
  20.         Typical use:
  21.  
  22.             chkdrv a:
  23.             if errorlevel 255 goto usage
  24.             if errorlevel 1 goto not_ready
  25.             (drive ready if here)
  26.             ...
  27.             :NOT_READY
  28.             (drive not ready if here)
  29.             ...
  30.             :USAGE
  31.             (missing parameter or colon if here)
  32.  
  33.         Donated to the public domain.
  34.  
  35.         Chris Dunford
  36.         10/3/89
  37.         CompuServe 76703,2002
  38.